import gsApi from '@/api/gsApi';
let test = 1;
let currentInitMap = '';
let currentPosition = '';
let intervalFlag = '';
function showCurrentPosition(){
    setInterval(() => {
        const res=gsApi.getLocation()
        currentPosition = res.data;
    }, 500);
}

function add(){
    test++;
    console.log(test);
}

function setCurrentInitMap(mapName){
    currentInitMap = mapName;
}

function getCurrentInitMap(){
    return mapName;
}

export default{
    showCurrentPosition,
    add,
    setCurrentInitMap,getCurrentInitMap
}

